package org.hismig.partition;

import java.sql.SQLException;

import javax.sql.DataSource;

import org.hismig.cfg.DynamicPartition;
import org.hismig.migration.Context;

/**
 * @declare: //TODO <br />
 *           This class created by Vansion.Hopihit on 2012-07-04 <br />
 *           <a href="mailto:vansionhopihit@gmail.com">Contact Me</a>
 * @version 1.0
 * @author Vansion.Hopihit
 * 
 */
public interface IDynamicPartition {

	public static final String KEY_SELECTION = "selection";
	public static final String KEY_DRIVER = "driver";
	public static final String KEY_BASEURL = "baseUrl";
	public static final String KEY_URL = "url";
	public static final String KEY_USER = "user";
	public static final String KEY_PASSWORD = "password";
	public static final String KEY_CREATEDBURL = "createDBUrl";

	public static final String SYMBOL_DBNAME = "DBNAME";

	public DataSource getDataSource(Context context) throws SQLException;

	public void setDynamicPartition(DynamicPartition dynamicPartition);

}
